package flextv.main.event {

import com.adobe.cairngorm.control.CairngormEvent;

import flextv.core.vo.Playlist;

public class ImportEvent extends CairngormEvent {
	
	public static const IMPORT: String = "import";
	
	private var _targetPlaylist: Playlist;
	
	
	public function ImportEvent(targetPlaylist: Playlist) {
		super(IMPORT);
		if(targetPlaylist == null) throw new ArgumentError("targetPlaylist == null");
		this._targetPlaylist = targetPlaylist;
	}
	
	public function get targetPlaylist(): Playlist {
		return this._targetPlaylist;
	}
	
	public override function toString(): String {
		return "ImportEvent[targetPlaylist="+targetPlaylist+"]";
	}
	
}
}